<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-08-23
 * Time: 9:31
 */
namespace App\Http\Controllers\Help;
use App\Http\Controllers\Controller;
use App\Model\Account\Article;
use App\Tool\Error;
class HelpController extends Controller{

    //公司信息
    public function companyInfo(){
        return $this->success('ok', Article::getInfo(1));
    }

    //使用说明
   public function useHelp(){
       return $this->success('ok', Article::getInfo(3));
   }

    //首页新闻列表
    public function newsList()
    {
        $list = Article::newsList(5);
        if (!$list) {
            return $this->error(Error::NULL_DATA);
        }
        return $this->success('ok', $list);
    }
}